package homework.employee;

public class SalaryEmployee extends Employee{
    private double salary;
    private MyDate birthdate;

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public MyDate getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(MyDate birthdate) {
        this.birthdate = birthdate;
    }
    public double earning(){
        return salary;
    }
    public String getInfo(){
        return super.getName()+"的实发工资为"+earning()+"元,该员工的生日为："+birthdate.getInfo();
    }
}
